{{include file=Main_View('head')}}
<div class="main_content">
	<fieldset class="layui-elem-field layui-field-title">
		<legend>会员登陆</legend>
	</fieldset>
	<form class="layui-form" method="post">
		<table class="layui-table" >
			<tr>
				<td>用户名</td>
				<td>
					<input type="text" class="layui-input my-input" name="username" />
				</td>
			</tr>
			<tr>
				<td>密码</td>
				<td>
					<input type="password" class="layui-input my-input" name="password" />
				</td>
			</tr>
			<if condition="C('login|LOGIN.login_is_yzm')">
			<tr>
				<td>验证码</td>
				<td>
					<input type="text" placeholder="" class="layui-input w100 left" name="yzm" />
					<img src="/Verification_Code{{C('HTML')}}" alt="点击图片更换验证码" title="点击图片更换验证码" class="left ml10"  onclick="this.src='/Verification_Code?'+Math.random();"/>
				</td>
			</tr>
			</if>
			<tr>
				<td colspan="2" align="center" class="login_input">
					<input type="hidden" name="step" value="post" />
					<button class="layui-btn layui-btn-normal">登陆</button>
					<a href="/login/index/reg{{C('HTML')}}">注册</a>
					<a href="/login/index/forgot{{C('HTML')}}">忘记密码</a>
					<p style=" margin-top: 10px;">
						其它登陆方式：
						<foreach array="C('login|MORE_LOGIN_LIST')" f='true'>
							<php>
								if($row['is_open_window']==0){
									$loginurl=$row['loginurl'];
									$onchick="";
									$target='target="_blank"';
								}else{
									$target='';
									$loginurl='javascript:';
									$onchick='onclick="'.$key.'()"';
								}
							</php>
							
							<if condition="$row['thumb']">
								<a title="{{$row['name']}}" {{$target}} href="{{$loginurl}}" {{$onchick}}><img alt="{{$row['name']}}" src="{{$row['thumb']}}" /></a>
							<else>
							<a href="{{$loginurl}}" {{$target}} {{$onchick}}>{{$row['name']}}</a>
							</if>
							
							<if condition="$row['is_open_window']==1">
								<script>
								function {{$key}}(){
										window.open("{{$row['loginurl']}}","{{$key}}", "width=690,height=460,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
								}
								</script>
							</if>
							
						</foreach>
					</p>
				</td>
			</tr>
		</table>
	</form>
</div>
{{include file=Main_View('foot')}}